"""
@ProjectName : StudentManagementSystem
@File        : main.py
@Author      : WorldWind(1772830365@qq.com)
@Address     : ChangSha - BoWeiFeng
@Date        : 2025/7/17 上午11:21
"""
from students.student_ui import StudentUI

if __name__ == '__main__':
    ui = StudentUI()
    while True:
        option = input('请输入操作:[1.添加学生][2.查询学生信息][3.更新学生信息][4.删除学生信息][5.退出]:')
        if option == '1':
            ui.add()
        elif option == '2':
            print(ui.search())
        elif option == '3':
            ui.update()
        elif option == '4':
            ui.delete()
        elif option == '5':
            print('退出成功!')
            break
        else:
            print('请输入正确选项!')